package link.hwx.mapper.oa;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import link.hwx.entity.oa.OaUserInfo;
import link.hwx.entity.u9.BaseVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 * OA用户信息
 */
@DS("OAData")
@Mapper
public interface OaInfoMapper extends BaseMapper<BaseVo> {
    OaUserInfo findUserInfoByCode(@Param("workcode") String workcode);

    OaUserInfo findUserInfoById(@Param("userId") String userId);
    OaUserInfo findFileInfoByDocID(@Param("docId") String docId);
    int updateWorkflowTableTitle(@Param("requestName") String requestName,@Param("requestNameNew") String requestNameNew,@Param("workflowId") String workflowId);

    int updateMemoByRequestId(@Param("mainTableName") String mainTableName,@Param("requestName") String requestName,@Param("requestid") String requestid);

    int updateSdByRequestId(@Param("mainTableName") String mainTableName,@Param("requestName") String requestName,@Param("requestid") String requestid);
}
